FROM openjdk:8-jre-alpine

COPY ./DockerDemo /DockerDemo

ENV APP_USER ktor
RUN adduser -D -g "" ${APP_USER}
RUN chown -R ${APP_USER} /DockerDemo

USER ${APP_USER}
WORKDIR /DockerDemo

ENV HOST 0.0.0.0
ENV PORT 8080

CMD ./bin/DockerDemo